package com.zhangpingyang.jwttoken.service;

import com.zhangpingyang.jwttoken.nosql.elasticsearch.model.EsProduct;
import org.springframework.data.domain.Page;

/**
 * @Author: Zhang Pingyang
 * @Date: 2019/11/12 0:30
 */
public interface EsProductService {
    int importAll();
    /**
     * 根据关键字搜索名称或者副标题
     */
    Iterable<EsProduct> search(String keyword, Integer pageNum, Integer pageSize);
}
